/*
 * EquipmentBasicShield.h
 *
 *  Created on: Jun 16, 2012
 *      Author: gonzalo
 */

#ifndef EQUIPMENTBASICSHIELD_H_
#define EQUIPMENTBASICSHIELD_H_

#include "Equipment.h"
#include "../ProgressBar.h"

class EquipmentBasicShield : public Equipment {
public:
	EquipmentBasicShield(Widget* parent);
	EquipmentBasicShield(DTOEquipment* dtoEquipment, Widget* parent);
	virtual void handleEvent(Event event);
	virtual void updateStatus();
	virtual int reduceLife(int value,playElement element);
	virtual void showOn(SDL_Surface* surface,int offsetX,int offsetY);
	virtual DTOEquipment* getDTO();

	virtual ~EquipmentBasicShield();
private:
	SDL_Rect rect;
	SDL_Surface* surface;
	ProgressBar* energy;

	void updatePosition(int offsetX,int offsetY);
};

#endif /* EQUIPMENTBASICSHIELD_H_ */
